<template>
  <div>
    <Header :isLogin="isLogin" :newMsg="newMsg"/>
    <List/>
    <Footer/>
  </div>
</template>

<script>
import Header from "../../../header/header";
import List from "../list/list";
import Footer from "../../../footer/footer";
export default {
  components: {
    Header,
    List,
    Footer
  },
 data() {
    return {
      isLogin: false,
      newMsg: false
    };
  },
  mounted() {
    this.axios.get("/user/info").then((resp)=>{
        if(resp.code != 0){
        }else{
          this.EventBus.$emit("isLogin",true,resp.data.newMsg,resp.data.role)
        }
      })
  }
};
</script>

<style scoped>
</style>
